package com.xiaoyu.lanling.event.vip

import `in`.srain.cube.request.JsonData
import com.xiaoyu.base.event.BaseJsonEvent
import com.xiaoyu.base.utils.JsonUtil
import com.xiaoyu.lanling.feature.vip.model.VipProduct

class VipProductListEvent(requestTag: Any, jsonData: JsonData) : BaseJsonEvent(requestTag, jsonData) {
    val vipProducts = JsonUtil.convertToList(jsonData.optJson("vipList")) { rawItem -> VipProduct(rawItem) }
    val pageIndex = jsonData.optInt("pageIndex")
}